package com.hwl.demo13.service.impl;

import com.hwl.demo13.service.Player;

/**
 * 翻译者
 *
 * @author sentry
 * @since 2023-03-21
 */
public class Translator extends Player {

    private final ForeignCenter foreignCenter = new ForeignCenter();

    public Translator(String name) {
        super(name);
        foreignCenter.setName(name);
    }

    @Override
    public void attack() {
        foreignCenter.jingong();
    }

    @Override
    public void defense() {
        foreignCenter.fangshou();
    }
}
